package com.gzw.dms.utils;

import android.view.View;

import java.util.ArrayList;

public class ClsSetSelected {
	public static void setSel(ArrayList<View> lsTv, ArrayList<View> lsV, int id) {
		int i = 0;
		for (View view : lsTv) {
			if (view.getId() == id) {
				lsV.get(i).setSelected(true);
				lsTv.get(i).setSelected(true);
			} else {
				lsV.get(i).setSelected(false);
				lsTv.get(i).setSelected(false);
			}
			i++;
		}
	}
}
